package com.yungu.swift.order.consts;

import java.util.Arrays;
import java.util.List;

public class Constants {

    /**
     * 专车APP中的支付类型
     */
    public final static List<Integer> APP_TYPE_SPECIAL = Arrays.asList(2, 4, 5, 6, 7);
    /**
     * 待支付状态
     */
    public final static List<Integer> ORDER_PREPAY_SUB_STATUS = Arrays.asList(500, 511, 521, 512, 522, 513, 523);
    /**
     * 支付完成状态
     */
    public final static List<Integer> ORDER_PAID_SUB_STATUS = Arrays.asList(600, 610);


    /**
     * 投诉信息状态码 - 1：待处理 2：正在处理 3：已处理 4：未投诉（投诉没有这个状态，只是在检索订单投诉状态值的时候，如果没有投诉返回给客户端的一个状态）
     **/
    public final static Integer COMPLAINT_STATUS_NEW = 1;
    public final static Integer COMPLAINT_STATUS_HANDLING = 2;
    public final static Integer COMPLAINT_STATUS_COMPLETED = 3;
    public final static Integer COMPLAINT_STATUS_NULL = 4;


    /**
     * 乘客首页获取订单状态返回值 - 0：无进行中的订单 1：有等待应答订单 2：有进行中的订单 3：有待付款订单 4：有预约订单 5：有预约订单已超过出发时间
     **/
    public final static Integer HOMEPAGE_ORDER_STATUS_NULL = 0;
    public final static Integer HOMEPAGE_ORDER_STATUS_WAIT = 1;
    public final static Integer HOMEPAGE_ORDER_STATUS_DOING = 2;
    public final static Integer HOMEPAGE_ORDER_STATUS_WAIT_PAY = 3;
    public final static Integer HOMEPAGE_ORDER_STATUS_APPOINT = 4;
    public final static Integer HOMEPAGE_ORDER_STATUS_APPOINT_AFTER1 = 5;
    /**
     * 司机首页获取订单状态返回值 - 1：有超过出发时间的预约订单
     **/
    public final static Integer HOMEPAGE_ORDER_STATUS_APPOINT_AFTER = 1;


    /**
     * 订单关闭原因：PAS_CANCEL乘客主动取消 DRI_CANCEL司机端取消【预留】 TIME_OUT超时系统自动取消 ADMIN_CLOSE后台关闭 CHANGE_ASSIGNED 改派关闭
     */
    public final static String ORDER_CANCEL_SUB_STATUS_PASSENGER = "PAS_CANCEL";
    public final static String ORDER_CANCEL_SUB_STATUS_DRIVER = "DRI_CANCEL";
    public final static String ORDER_CANCEL_SUB_STATUS_SYSTEM = "TIME_OUT";
    public final static String ORDER_CANCEL_SUB_STATUS_ADMIN = "ADMIN_CLOSE";
    public final static String ORDER_CANCEL_SUB_STATUS_ASSIGNED = "CHANGE_ASSIGNED";


    /**
     * 订单付款状态 0-未支付 1-已支付 2-退款中 3-已退款
     */
    public final static int ORDER_PAY_STATUS_UNPAY = 0;
    public final static int ORDER_PAY_STATUS_PAYED = 1;
    public final static int ORDER_PAY_STATUS_REFUNDDING = 2;
    public final static int ORDER_PAY_STATUS_REFUNDED = 3;

    /**
     * 跨城拼车：订单来电通话处理状态 0 未处理 1 已处理 -1 已关闭（未处理）
     */
    public final static int ORDER_CALL_UNDISPOSE = 0;
    public final static int ORDER_CALL_DISPOSED = 1;
    public final static int ORDER_CALL_CLOSED = -1;


    //订单相关常量
    /**
     * 订单支付存入KEY
     */
    public final static String ORDER_CACHE_KEY = "orderPayWaiting";
    /**
     * 回调缓存KEY
     */
    public final static String CALLBACK_CACHE_KEY = "orderCallbackWaiting";
}
